package com.quectel.cms.controller;

import com.quectel.util.http.RequestUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WelcomeController extends BaseController {

    @GetMapping("/welcome")
    public String welcome() {
        logger.info("请求者ip:{}", RequestUtils.getRealIp(httpServletRequest));
        return "cms-api";
    }

    @PostMapping("/welcome")
    public String welcomePost(@RequestBody CheckParamVo vo) {
        return "cms-api";
    }
}
